const moment = require('moment');


console.log(moment()); //Moment<2023-04-21T11:55:08+08:00>

// 2023-04-21 11:55:05;
console.log(moment().format('YYYY-MM-DD hh:mm:ss'));